<template>
    <editForm isEdit :initVal="val"></editForm>
</template>
<script setup>
import { getBannerApi } from "../../../api/banner";
import editForm from "./compoonent/form.vue"
import { useRoute, useRouter } from "vue-router";
import { ref } from "vue";
const route = useRoute();
// console.log(route.params.id);
const { id } = route.params;
const val = ref();
// const isLoading = ref(false);

getBannerApi(id).then((res) => {
    console.log(res);

    val.value = res;
    // isLoading.value = true;
    console.log(val.value);

})
</script>
<style scoped></style>